package cn.larry.common.annotation;

import cn.larry.common.exception.Wechath5handlersException;

import javax.validation.constraints.NotNull;

/**
 * larry
 * 2022/12/26 22:20
 *
 * @Version 1.0
 */
public interface Wechath5Checker {

    /**
     * 参数校验接口
     * 通过 RuntimeWechath5handlersException 异常控制
     */
    Object check(Object object, @NotNull String methodName) throws Wechath5handlersException;

    /**
     * 环绕前置切面
     */
    Object aroundBefore(Object object) throws Wechath5handlersException;

    /**
     * 环绕后置切面
     *
     * @param object1
     * @param object2
     */
    Object aroundAfter(Object object1, Object object2) throws Wechath5handlersException;


}
